package com.souku.finance.application.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Android on 2017/1/16.
 * 用户活期资产账户信息
 */

public class CurrentBean implements Parcelable {

    private CurrentDealLoadDOBean currentDealLoadDO;
    private String dayInvestAmountRemain;
    private String dayWithdrawAmountRemain;
    private String maxInvestment;
    private String maxRate;
    private String minRate;
    private String riseDuration;
    private String riseMinMoney;
    private String riseRate;
    private String yesInterest;

    public CurrentDealLoadDOBean getCurrentDealLoadDO() {
        return currentDealLoadDO;
    }

    public void setCurrentDealLoadDO(CurrentDealLoadDOBean currentDealLoadDO) {
        this.currentDealLoadDO = currentDealLoadDO;
    }

    public String getMaxInvestment() {
        return maxInvestment;
    }

    public void setMaxInvestment(String maxInvestment) {
        this.maxInvestment = maxInvestment;
    }

    public String getDayInvestAmountRemain() {
        return dayInvestAmountRemain;
    }

    public void setDayInvestAmountRemain(String dayInvestAmountRemain) {
        this.dayInvestAmountRemain = dayInvestAmountRemain;
    }

    public String getDayWithdrawAmountRemain() {
        return dayWithdrawAmountRemain;
    }

    public void setDayWithdrawAmountRemain(String dayWithdrawAmountRemain) {
        this.dayWithdrawAmountRemain = dayWithdrawAmountRemain;
    }

    public String getMaxRate() {
        return maxRate;
    }

    public void setMaxRate(String maxRate) {
        this.maxRate = maxRate;
    }

    public String getMinRate() {
        return minRate;
    }

    public void setMinRate(String minRate) {
        this.minRate = minRate;
    }

    public String getRiseDuration() {
        return riseDuration;
    }

    public void setRiseDuration(String riseDuration) {
        this.riseDuration = riseDuration;
    }

    public String getRiseMinMoney() {
        return riseMinMoney;
    }

    public void setRiseMinMoney(String riseMinMoney) {
        this.riseMinMoney = riseMinMoney;
    }

    public String getRiseRate() {
        return riseRate;
    }

    public void setRiseRate(String riseRate) {
        this.riseRate = riseRate;
    }

    public String getYesInterest() {
        return yesInterest;
    }

    public void setYesInterest(String yesInterest) {
        this.yesInterest = yesInterest;
    }

    public static class CurrentDealLoadDOBean implements Parcelable {

        private String availableInterest;
        private String benfitMoney;
        private String cumulatedInterest;
        private String currentRate;
        private String fitRiseDays;
        private String gmtCreated;
        private String gmtModified;
        private String id;
        private String money;
        private String userId;

        public String getCumulatedInterest() {
            return cumulatedInterest;
        }

        public void setCumulatedInterest(String cumulatedInterest) {
            this.cumulatedInterest = cumulatedInterest;
        }

        public String getAvailableInterest() {
            return availableInterest;
        }

        public void setAvailableInterest(String availableInterest) {
            this.availableInterest = availableInterest;
        }

        public String getBenfitMoney() {
            return benfitMoney;
        }

        public void setBenfitMoney(String benfitMoney) {
            this.benfitMoney = benfitMoney;
        }

        public String getCurrentRate() {
            return currentRate;
        }

        public void setCurrentRate(String currentRate) {
            this.currentRate = currentRate;
        }

        public String getFitRiseDays() {
            return fitRiseDays;
        }

        public void setFitRiseDays(String fitRiseDays) {
            this.fitRiseDays = fitRiseDays;
        }

        public String getGmtCreated() {
            return gmtCreated;
        }

        public void setGmtCreated(String gmtCreated) {
            this.gmtCreated = gmtCreated;
        }

        public String getGmtModified() {
            return gmtModified;
        }

        public void setGmtModified(String gmtModified) {
            this.gmtModified = gmtModified;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getMoney() {
            return money;
        }

        public void setMoney(String money) {
            this.money = money;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.availableInterest);
            dest.writeString(this.benfitMoney);
            dest.writeString(this.cumulatedInterest);
            dest.writeString(this.currentRate);
            dest.writeString(this.fitRiseDays);
            dest.writeString(this.gmtCreated);
            dest.writeString(this.gmtModified);
            dest.writeString(this.id);
            dest.writeString(this.money);
            dest.writeString(this.userId);
        }

        public CurrentDealLoadDOBean() {
        }

        protected CurrentDealLoadDOBean(Parcel in) {
            this.availableInterest = in.readString();
            this.benfitMoney = in.readString();
            this.cumulatedInterest = in.readString();
            this.currentRate = in.readString();
            this.fitRiseDays = in.readString();
            this.gmtCreated = in.readString();
            this.gmtModified = in.readString();
            this.id = in.readString();
            this.money = in.readString();
            this.userId = in.readString();
        }

        public static final Creator<CurrentDealLoadDOBean> CREATOR = new Creator<CurrentDealLoadDOBean>() {
            @Override
            public CurrentDealLoadDOBean createFromParcel(Parcel source) {
                return new CurrentDealLoadDOBean(source);
            }

            @Override
            public CurrentDealLoadDOBean[] newArray(int size) {
                return new CurrentDealLoadDOBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.currentDealLoadDO, flags);
        dest.writeString(this.dayInvestAmountRemain);
        dest.writeString(this.dayWithdrawAmountRemain);
        dest.writeString(this.maxInvestment);
        dest.writeString(this.maxRate);
        dest.writeString(this.minRate);
        dest.writeString(this.riseDuration);
        dest.writeString(this.riseMinMoney);
        dest.writeString(this.riseRate);
        dest.writeString(this.yesInterest);
    }

    public CurrentBean() {
    }

    protected CurrentBean(Parcel in) {
        this.currentDealLoadDO = in.readParcelable(CurrentDealLoadDOBean.class.getClassLoader());
        this.dayInvestAmountRemain = in.readString();
        this.dayWithdrawAmountRemain = in.readString();
        this.maxInvestment = in.readString();
        this.maxRate = in.readString();
        this.minRate = in.readString();
        this.riseDuration = in.readString();
        this.riseMinMoney = in.readString();
        this.riseRate = in.readString();
        this.yesInterest = in.readString();
    }

    public static final Parcelable.Creator<CurrentBean> CREATOR = new Parcelable.Creator<CurrentBean>() {
        @Override
        public CurrentBean createFromParcel(Parcel source) {
            return new CurrentBean(source);
        }

        @Override
        public CurrentBean[] newArray(int size) {
            return new CurrentBean[size];
        }
    };
}
